﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace SnakeGame
{
    class Field
    {
       
        private int _col;
        private int _row;
        private int _x = 50;
        private int _X = 0;
        private int _y = 20;
        private int _Y = 0;
        public void PaintField()
        {
            
            _col = Console.CursorLeft;
            _row = Console.CursorTop;
            for (int y = 0; y <= 20;y++ )
            {
                Console.SetCursorPosition(_col + _X, _row +y);
                Console.Write("|");
            }
            for(int y = 0;y<=20;y++)
            {               
                Console.SetCursorPosition(_col + _x , _row + y);
                Console.Write("|");
                
            }
            for(int x = 0;x<=50;x++)
            {
                Console.SetCursorPosition(_col + x, _row + _y);
                Console.Write("-");
                
            }
            for (int x = 0; x <= 50; x++)
            {
                Console.SetCursorPosition(_col + x, _row + _Y);
                Console.Write("-");

            }
        }
    }
}
